one verified on both the GPilotS simulator and by Gary Mumma.
(echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > $@ || (rm -f $@ ; exit 1)' ) >> /tmp/dep
echo Edit Makefile and bring in /tmp/dep
-VERSIONU=1_2_3_beta04202004
-VERSIOND=1.2.3_beta04202004
+VERSIONU=1_2_3_beta04272004
+VERSIOND=1.2.3_beta04272004
#VERSIONU=1_2_2
#VERSIOND=1.2.2
p = data;
- for(i=0;i<6;++i) *p++ = way->ident[i];
+ for(i=0;i<6;++i) {
+ if (way->ident[i] == 0) {
+ memset(p, ' ', 6-i);
+ p+=6-i;
+ break;
+ }
+ *p++ = way->ident[i];
+ }
+
GPS_Util_Put_Int(p,(int32)GPS_Math_Deg_To_Semi(way->lat));
p+=sizeof(int32);
GPS_Util_Put_Int(p,(int32)GPS_Math_Deg_To_Semi(way->lon));